package com.lcf.system.controller;


import com.lcf.system.dto.MovieUserScoreDTO;
import com.lcf.system.service.MovieUserScoreService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户电影打分记录(MovieUserScore)表控制层
 *
 * @author lcf
 * @since 2025-05-16 22:44:32
 */
@Tag(name = "用户电影打分记录")
@RestController
@RequestMapping("movieUserScore")
public class MovieUserScoreController  {
    @Resource
    private MovieUserScoreService movieUserScoreService;

    /**
     * 电影打分
     */
    @Operation(summary = "电影打分")
    @PostMapping
    public boolean add(@Validated @RequestBody MovieUserScoreDTO dto) {
        return movieUserScoreService.add(dto);
    }
}

